package com.javaee.spring.chineseIdol;

public class Instrumentalist implements Performer {
	private String song;
	private Instrument instrument;
	
	
	public String getSong() {
		return song;
	}


	public void setSong(String song) {
		this.song = song;
	}


	public Instrument getInstrument() {
		return instrument;
	}


	public void setInstrument(Instrument instrument) {
		this.instrument = instrument;
	}


	@Override
	public void performer() throws PerformanceException {
		System.out.println("playing "+song+" :");
		instrument.play();
	}
	
}
